#include <iostream>
#include <clocale>
#include <vector>
#include <thread>
#include "Game.h"
#include "Player.h"

#define MAX 10
using namespace std;


int main()
{
	setlocale(LC_ALL, "swedish");
	
	deque<char> pQueue1;
	deque<char> pQueue2;
	deque<Pos> gQueue;
	Player p1('1', 'a', 'd', 'w', 's', 0, 0, MAX, pQueue1, gQueue);
	Player p2('2', 'j', 'l', 'i', 'k', 9, 9, MAX, pQueue2, gQueue);
	Game game(MAX, gQueue, pQueue1, pQueue2);
	
	thread t_game(game);
	thread t_p1(p1);
	thread t_p2(p2);

	t_game.join();
	//t_p1.join();
	//t_p2.join();


	system("PAUSE");
	return 0;
}